package com.zreal;

import com.zreal.generator.codegenerate.generate.CodeGenerate;
import com.zreal.generator.config.PropertiesBuilder;

import java.io.File;
import java.io.InputStream;

/**
 * Created by PJ on 2017/6/13.
 */
public class Generate {

    public static void build(InputStream inputStream){
        PropertiesBuilder.build(inputStream);
        new CodeGenerate().generate();
    }

    public static void build(String filePath){
        PropertiesBuilder.build(filePath);
        new CodeGenerate().generate();
    }

    public static void build(File file){
        PropertiesBuilder.build(file);
        new CodeGenerate().generate();
    }

    public static void build(){
        new CodeGenerate().generate();
    }

    public static void main(String[] args) throws InterruptedException {
        build();
    }

}
